<?php
/**
 * RedCross Application
 *
 * @copyright Copyright (c) 2010, Kristian Stokke Tryggestad, Rune Vikestad, Andreas Flaten Wist, Simen Nicolai Echholt, Ole Henrik Jahren
 */

/**
 * User login form
 *
 * @category    RedCross
 * @package     Core_Form
 */
class Core_Form_User_Login extends RedCross_Form
{
    public function init()
    {
        $this->setAttrib('id', 'user_login');

        $this->addElement('text', 'username', array(
            'required'      => true,
            'label'         => 'Brukernavn'
        ));

        $this->addElement('password', 'password', array(
            'required'      => true,
            'label'         => 'Passord'
        ));

        $this->addElement('checkbox', 'rememberMe', array(
            'required'		=> false,
            'label'			=> 'Husk meg'
        ));

        $this->addElement('submit', 'submit', array(
        	'id'       => 'button',
            'required' => false,
            'ignore'   => true,
            'label'    => 'Logg inn',
        ));
    }
}